package com.huidu.bitrade.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huidu.bitrade.config.CustomerBigDecimalSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("z_member_group")
public class MemberGroup implements Serializable {
    private Long id;

    private Long memberId;

    @Excel(name = "手机号", orderNum = "1", width = 20)
    private String mobilePhone;

    @Excel(name = "hdz", orderNum = "1", width = 20)
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal hdz;

    @Excel(name = "cnhd", orderNum = "1", width = 20)
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal cnhd;

    @Excel(name = "hdc", orderNum = "1", width = 20)
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal hdc;

    @Excel(name = "用户星级", orderNum = "1", width = 20)
    private Integer memberStar;

    @Excel(name = "hdc锁仓待释放", orderNum = "1", width = 20)
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal lockNumber;

    @Excel(name = "hdz质押数量", orderNum = "1", width = 20)
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal loanNumber;

    //    @Excel(name = "用户姓名", orderNum = "1", width = 20)
    private String realName;
}
